package com.cubicleman.airvj.model.vo.MTV
{
	public class Artist extends Response
	{
		public function Artist()
		{
			author = new Author();
			thumbNails = new Array();
		}
		
		public var author:Author;
		
		/**
		 * array of images...URLs only
		 */
		public var thumbNails:Array;
		
		/**
		 * array of videos 
		 * for use if building a complete 
		 * artist object, not available in API without two calls though
		 */
		public var videos:Array;

		/**
		 * array of related artists.
		 *  use if building a complete 
		 * artist object, not available in API without two calls though
		 */
		public var relatedArtists:Array;
		
		
		public var title:String = '';
		
		public var videosURL:String = '';
		
		public var relatedArtistURL:String = '';

		/**
		 * returns a specific thumbnail defined here
		 * just a helper funtion really.
		 */
		public function get thumbnail():ThumbNail
		{
			//s/b last one, but api is wrong ATM thumbNails.length-1
			return thumbNails.length > 0 ? thumbNails[0] as ThumbNail : new ThumbNail();
		}
	}
}